<div class="roles form">
<?PHP
	echo $this->MForm->create('Advertise',array('type'=>'file','id'=>'AdvertiseAddForm'));
?>
        <fieldset>
        <?php
        echo $this->MForm->input('id');
        echo $this->MForm->input('cate_id');
        echo $this->MForm->input('name');
		echo $this->MForm->input('slogan');
		echo $this->MForm->swfupload('photo');
		echo $this->MForm->input('priority');
		echo $this->MForm->input('advertise_url');		
		echo $this->MForm->input('published'); 
		echo $this->MForm->input('recommend'); 
		
		echo $this->MForm->input('click_nums',array('default'=>0));
		echo $this->MForm->input('description');

		echo $this->MForm->input('adwidth');
		echo $this->MForm->input('adheight');
		
		echo $this->MForm->input('content',array('rows'=>8));
        ?>
        </fieldset>
         <div class="form-group">
    		<label class="col-sm-2 control-label"></label>
    	<div class="col-sm-10 controls"><?php echo $this->MForm->submit(__('Submit'),array('id'=>'btnsubmit')); ?></div>
    </div>
	{{$this->MForm->end()}}
</div>
